Skip to content

Add support for RHEL in Connect's prestart.bash#639

Merged
dbkegley merged 5 commits intomainfrom
kegs/rhel-startup-script
Jan 21, 2025
Merged

Add support for RHEL in Connect's prestart.bash#639
dbkegley merged 5 commits intomainfrom
kegs/rhel-startup-script

Conversation

@dbkegley
Copy link
Contributor

replaces: #502

@dbkegley dbkegley force-pushed the kegs/rhel-startup-script branch from ba9d0f9 to 9287b9c Compare January 21, 2025 16:17
DIST=$(cat /etc/os-release | grep "^ID=" -E -m 1 | cut -c 4-10 | sed 's/"//g')
if [[ $DIST == "ubuntu" ]]; then
update-ca-certificates 2>&1 | _indent
elif [[ $DIST == "rhel" || $DIST == "almalinux" ]]; then
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Include rocky, which we often use as a stand-in for RHEL.

docker run -it --rm rockylinux:8 cat /etc/os-release | grep '^ID='
#> ID="rocky"
docker run -it --rm rockylinux:9 cat /etc/os-release | grep '^ID='
#> ID="rocky"

@dbkegley dbkegley merged commit 775b1e1 into main Jan 21, 2025
6 checks passed
@dbkegley dbkegley deleted the kegs/rhel-startup-script branch January 21, 2025 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants